package log;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author apple
 */
public class CommonLogginTest {

	public static final Log log = LogFactory.getLog(CommonLogginTest.class);
//	public static final SimpleLog log = new SimpleLog("日志");
	
	public static void main(String[] args) {
		
		log.fatal("致命错误", new NullPointerException("空指针异常"));
		log.error("一般信息");
		log.warn("警告错误");
		log.info("提示信息");
		log.debug("调试信息");
		log.trace("跟踪信息");
		System.out.println(log.getClass());
	}
}
